/*
 * TemaDTIterator.cpp - Grupo 5 - Prog. Avanzada 2011
 *
 *  Javier Dominguez - 4.901.161-6
 *  Marcelo Parada - 1.977.094-9
 *  Rodrigo Ruiz - 4.481.611-2
 *  Maximiliano Silvera - 4.106.938-6
 */

#include "TemaDTIterator.h"

TemaDTIterator::TemaDTIterator(IIterator *iter)
{
	this->iter = iter;
}

void TemaDTIterator::next()
{
	iter->next();
}
bool TemaDTIterator::hasCurrent()
{
	return iter->hasCurrent();
}

TemaDT *TemaDTIterator::current()
{
	return (TemaDT*) iter->current();
}


TemaDTIterator::~TemaDTIterator()
{
	iter->~IIterator();

		delete iter;

}



